#include <stdio.h>

int main()
{
   int num = 12345;
   int a1,a2,a3,a4,a5;
   a1 = 1%10;
   a2 = 12%10;
   a3 = 123%10;
   a4 = 1234%10;
   a5 = 12345%10;
   printf("万位数是%d\n千位数是%d\n百位数是%d\n十位数是%d\n万位数是%d\n",a1,a2,a3,a4,a5);


}